package com.tjetc.mapper;

import com.tjetc.domain.FollowClinic;
import com.tjetc.domain.FollowHospital;
import com.tjetc.vo.FollowClinicInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FollowClinicMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FollowClinic record);

    int insertSelective(FollowClinic record);

    FollowClinic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FollowClinic record);

    int updateByPrimaryKey(FollowClinic record);

    List<FollowClinicInfoVo> selectFollowClinicInfo(Integer uid);

    @Select("select * from follow_clinic where uid = #{uid} and cid = #{cid} ")
    FollowClinic selectByUidAndHid(@Param("uid") Integer uid, @Param("cid") Integer cid);

    @Select("select  count(*) from follow_clinic where uid = #{uid} ")
    Integer selectFollowCountByUid(Integer uid);
}